<div class="layui-table-page" style="height:50px;line-height: 50px;">
  <div id="layui-table-page1">
    <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-1" style="margin-top: 15px;">
      <a href="{% if page > 1 %}{{ request.path }}?page={{ page|add:'-1' }}&per_page={{ per_page }}{% endif %}"
         class="layui-laypage-prev {% if page == 1 %}layui-disabled{% endif %}"
         data-page="0"><i class="layui-icon"></i></a>
      {% for page_num in page_list %}
        <span {% if page_num == page %}class="layui-laypage-curr" style="background-color:#1E9FFF;"{% endif %}><a
          href="{{ request.path }}?page={{ page_num }}&per_page={{ per_page }}"
          data-page="{{ page_num }}">{{ page_num }}</a></span>
      {% endfor %}
      <a href="{% if page < total_page %}{{ request.path }}?page={{ page|add:'1' }}&per_page={{ per_page }}{% endif %}"
         class="layui-laypage-next {% if page == total_page %}layui-disabled{% endif %}" data-page="2"><i
        class="layui-icon"></i></a>
      <span class="layui-laypage-count">共 {{ context.total_num }} 条</span>
      <span class="layui-laypage-count">共 {{ total_page }} 页</span>
    </div>
  </div>
</div>